package com.pllandxzx.controller;

import com.pll.dto.ResponseDto;
import com.pllandxzx.service.HomeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HomeController
 * @Description TODO
 * @Author 小鹿
 * @Date 2025/6/30 17:01
 */
@RestController
@RequestMapping("/home")
@RequiredArgsConstructor
public class HomeController
{
    private final HomeService homeService;
    @GetMapping("/getAllOrderData")
    public ResponseDto getAllOrderData(){
        return homeService.getAllOrderData();
    }
}